package com.graduation_design.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.graduation_design.common.dto.AppOrderDto;
import com.graduation_design.entity.AppOrder;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 从南
* @description 针对表【app_order】的数据库操作Service
* @createDate 2024-02-16 18:15:58
*/
public interface AppOrderService extends IService<AppOrder> {

    Object preview(AppOrderDto orderDto);

    Object create(AppOrderDto orderDto);

    AppOrder getBySn(String sn);

    AppOrder getOwnBySn(String sn);

    AppOrder getOwnById(Long id);

    Object getOrderCount();

    Object getPage(Page page, long userId, Integer status);

    Object detail(Long id);

    Object cancel(Long id);

    Object delete(Long id);

    Object getDeliveryInfo(AppOrder order) throws Exception;

    void confirm(Long id);

    Object pageAdmin(Page page, AppOrder appOrder);

    Object getOrderInfo(Long id);

    void shipAdmin(AppOrder appOrder);

    void closeAdmin(Long id, String note, Long adminId);
}
